<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>爱贝儿医</title>
    <?php PrintPageHead(); ?>
    <link rel="stylesheet" href="../style/common.css?<?=版本?>">
        <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no"/>
        <script src="../js/jquery.js"></script>
</head>
<body>
<?php
/**
 * Created by PhpStorm. User: ADun, Date: 14-10-15 下午10:11
 * Description:
 */
require_once "../linhe.php";
$openId=getCurrentUserOID();
$busFlag="addmeet_use";
$do1=pdo()->selects("select * from  会议报名表 where openid='".$openId."' " );
$do=$do1[0];
$title="会议报名";
$重回报名=$bm->生成有效链接('AddMeet_users',$_GET['state']);
?>
<div id="AddMeet_users">

    <header>会 议 报 名</header>
        <div class="content">第二届南海国际妇幼健康论坛将于2016年4月6日-8日于海口新燕泰大酒店盛大召开。爱贝儿医作为协作方，是大会指定唯一报名合作入口，请大家填写以下报名信息。客服热线：<span class="cont-tel-num"><strong>4008258989</strong></span></div>
    <div class="AMu-form" >
        <form class="form-horizontal" role="form" action="../commit.php?businessFlag=addment_user" method="post" >
                <input type="hidden" value="<?=$openId ?>" name="openid" id="openid"/>
                <input type="hidden" value="<?=$do['id'] ?>" name="id" id="id"/>
            <input type="hidden" value="<?=$重回报名 ?>" name="重回报名" id="重回报名"/>
            <div class="AMu-form-list">
                <div class="AMu-form-list-title"><div>姓名</div></div>
                <div class="AMu-form-list-cont"><input type='text' class=" input" name="name" id="name" value="<?= $do['name']  ?>"  placeholder="此项为必填项"></div>
                <div class="clear"></div>
            </div>
            <div class="AMu-form-list">
                <div class="AMu-form-list-title"><div>性别</div></div>
                <div class="AMu-form-list-cont">
                    <?php  if($do['sex'] == '男'){ ?>
                                         <input type="radio" name="sex" id="sex" value="男" checked="checked" class="AMu-radio"> 男
                                         <input class="AMu-radio AMu-radio1" type="radio" name="sex" id="sex" value="女" > 女
                                    <?php }else{ ?>
                                         <input class="AMu-radio" type="radio" name="sex" id="sex" value="男" > 男
                                        <input class="AMu-radio AMu-radio1" type="radio" name="sex" id="sex" value="女" checked="checked"> 女
                                    <?php } ?>
                                                  </div>
                <div class="clear"></div>
            </div>
            <div class="AMu-form-list">
                <div class="AMu-form-list-title"><div>工作单位</div></div>
                <div class="AMu-form-list-cont"><input type='text' class="" id="work_address" name="work_address" value="<?= $do['work_address'] ?>"></div>
                <div class="clear"></div>
            </div>
            <div class="AMu-form-list">
                <div class="AMu-form-list-title"><div>职位</div></div>
                <div class="AMu-form-list-cont"><input type='text' class="" name="zhiwei" id="zhiwei" value=" <?= $do['zhiwei']?>"></div>
                <div class="clear"></div>
            </div>
            <div class="AMu-form-list">
                <div class="AMu-form-list-title"><div>职务</div></div>
                <div class="AMu-form-list-cont"><input type='text' class="" name="zhiwu" id="zhiwu" value=" <?= $do['zhiwu']?>"></div>
                <div class="clear"></div>
            </div>
            <div class="AMu-form-list">
                <div class="AMu-form-list-title"><div>手机号码</div></div>
                <div class="AMu-form-list-cont"><input type='text' class=" input" name="phone" id="phone" value="<?= $do['phone']?>" placeholder="此项为必填项" ></div>
                <div class="clear"></div>
            </div>
            <div class="AMu-form-list">
                <div class="AMu-form-list-title"><div>邮箱</div></div>
                <div class="AMu-form-list-cont"><input type='text' class="" name="email" id="email" value="<?=$do['email']?>"></div>
                <div class="clear"></div>
            </div>
            <div class="AMu-form-list">
         
                <div class="AMu-form-list-title"><div>入住时间</div></div>

                <div class="AMu-form-list-cont">
                                                            <span style="width:20%;text-align:center;">4月</span>
                                                            <select name="dao_time" id="start" style="background:url(../style/select_icon.png) no-repeat right center;height:95%;width:80%;float:right;appearance:none;
  -moz-appearance:none;-webkit-appearance:none;border: solid 1px #fff;">
                                                                <option value="1" <?php if($do['dao_time']==1){echo "selected";}else{echo '';}?>>1日</option>
                                                                <option value="2" <?php if($do['dao_time']==2){echo "selected";}else{echo '';}?>>2日</option>
                                                                <option value="3" <?php if($do['dao_time']==3){echo "selected";}else{echo '';}?>>3日</option>
                                                                <option value="4" <?php if($do['dao_time']==4){echo "selected";}else{echo '';}?>>4日</option>
                                                                <option value="5" <?php if($do['dao_time']==5){echo "selected";}else{echo '';}?>>5日</option>
                                                                <option value="6" <?php if($do['dao_time']==6){echo "selected";}else{echo '';}?>>6日</option>
                                                                <option value="7" <?php if($do['dao_time']==7){echo "selected";}else{echo '';}?>>7日</option>
                                                                <option value="8" <?php if($do['dao_time']==8){echo "selected";}else{echo '';}?>>8日</option>
                                                                <option value="9" <?php if($do['dao_time']==9){echo "selected";}else{echo '';}?>>9日</option>
                                                                <option value="10" <?php if($do['dao_time']==10){echo "selected";}else{echo '';}?>>10日</option>
                                                                <option value="11" <?php if($do['dao_time']==11){echo "selected";}else{echo '';}?>>11日</option>
                                                                <option value="12" <?php if($do['dao_time']==12){echo "selected";}else{echo '';}?>>12日</option>
                                                                <option value="13" <?php if($do['dao_time']==13){echo "selected";}else{echo '';}?>>13日</option>
                                                                <option value="14" <?php if($do['dao_time']==14){echo "selected";}else{echo '';}?>>14日</option>
                                                                <option value="15" <?php if($do['dao_time']==15){echo "selected";}else{echo '';}?>>15日</option>
                                                                <option value="16" <?php if($do['dao_time']==16){echo "selected";}else{echo '';}?>>16日</option>
                                                                <option value="17" <?php if($do['dao_time']==17){echo "selected";}else{echo '';}?>>17日</option>
                                                                <option value="18" <?php if($do['dao_time']==18){echo "selected";}else{echo '';}?>>18日</option>
                                                                <option value="19" <?php if($do['dao_time']==19){echo "selected";}else{echo '';}?>>19日</option>
                                                                <option value="20" <?php if($do['dao_time']==20){echo "selected";}else{echo '';}?>>20日</option>
                                                                <option value="21" <?php if($do['dao_time']==21){echo "selected";}else{echo '';}?>>21日</option>
                                                                <option value="22" <?php if($do['dao_time']==22){echo "selected";}else{echo '';}?>>22日</option>
                                                                <option value="23" <?php if($do['dao_time']==23){echo "selected";}else{echo '';}?>>23日</option>
                                                                <option value="24" <?php if($do['dao_time']==24){echo "selected";}else{echo '';}?>>24日</option>
                                                                <option value="25" <?php if($do['dao_time']==25){echo "selected";}else{echo '';}?>>25日</option>
                                                                <option value="26" <?php if($do['dao_time']==26){echo "selected";}else{echo '';}?>>26日</option>
                                                                <option value="27" <?php if($do['dao_time']==27){echo "selected";}else{echo '';}?>>27日</option>
                                                                <option value="28" <?php if($do['dao_time']==28){echo "selected";}else{echo '';}?>>28日</option>
                                                                <option value="29" <?php if($do['dao_time']==29){echo "selected";}else{echo '';}?>>29日</option>
                                                                <option value="30" <?php if($do['dao_time']==30){echo "selected";}else{echo '';}?>>30日</option>
                                                            </select>
                                                        </div>
                <div class="clear"></div>
            </div>
           
            <div class="AMu-form-list">
            
                <div class="AMu-form-list-title"><div>离开时间</div></div>
                <div class="AMu-form-list-cont">
                                                        <span style="width:20%;text-align:center;">4月</span>
                                                        <select name="go_time" id="end" style="background:url(../style/select_icon.png) no-repeat right center;height:95%;width:80%;float:right;appearance:none;
  -moz-appearance:none;-webkit-appearance:none;border: solid 1px #fff;">
                                                            <option value="1" <?php if($do['go_time']==1){echo "selected";}else{echo '';}?>>1日</option>
                                                            <option value="2" <?php if($do['go_time']==2){echo "selected";}else{echo '';}?>>2日</option>
                                                            <option value="3" <?php if($do['go_time']==3){echo "selected";}else{echo '';}?>>3日</option>
                                                            <option value="4" <?php if($do['go_time']==4){echo "selected";}else{echo '';}?>>4日</option>
                                                            <option value="5" <?php if($do['go_time']==5){echo "selected";}else{echo '';}?>>5日</option>
                                                            <option value="6" <?php if($do['go_time']==6){echo "selected";}else{echo '';}?>>6日</option>
                                                            <option value="7" <?php if($do['go_time']==7){echo "selected";}else{echo '';}?>>7日</option>
                                                            <option value="8" <?php if($do['go_time']==8){echo "selected";}else{echo '';}?>>8日</option>
                                                            <option value="9" <?php if($do['go_time']==9){echo "selected";}else{echo '';}?>>9日</option>
                                                            <option value="10" <?php if($do['go_time']==10){echo "selected";}else{echo '';}?>>10日</option>
                                                            <option value="11" <?php if($do['go_time']==11){echo "selected";}else{echo '';}?>>11日</option>
                                                            <option value="12" <?php if($do['go_time']==12){echo "selected";}else{echo '';}?>>12日</option>
                                                            <option value="13" <?php if($do['go_time']==13){echo "selected";}else{echo '';}?>>13日</option>
                                                            <option value="14" <?php if($do['go_time']==14){echo "selected";}else{echo '';}?>>14日</option>
                                                            <option value="15" <?php if($do['go_time']==15){echo "selected";}else{echo '';}?>>15日</option>
                                                            <option value="16" <?php if($do['go_time']==16){echo "selected";}else{echo '';}?>>16日</option>
                                                            <option value="17" <?php if($do['go_time']==17){echo "selected";}else{echo '';}?>>17日</option>
                                                            <option value="18" <?php if($do['go_time']==18){echo "selected";}else{echo '';}?>>18日</option>
                                                            <option value="19" <?php if($do['go_time']==19){echo "selected";}else{echo '';}?>>19日</option>
                                                            <option value="20" <?php if($do['go_time']==20){echo "selected";}else{echo '';}?>>20日</option>
                                                            <option value="21" <?php if($do['go_time']==21){echo "selected";}else{echo '';}?>>21日</option>
                                                            <option value="22" <?php if($do['go_time']==22){echo "selected";}else{echo '';}?>>22日</option>
                                                            <option value="23" <?php if($do['go_time']==23){echo "selected";}else{echo '';}?>>23日</option>
                                                            <option value="24" <?php if($do['go_time']==24){echo "selected";}else{echo '';}?>>24日</option>
                                                            <option value="25" <?php if($do['go_time']==25){echo "selected";}else{echo '';}?>>25日</option>
                                                            <option value="26" <?php if($do['go_time']==26){echo "selected";}else{echo '';}?>>26日</option>
                                                            <option value="27" <?php if($do['go_time']==27){echo "selected";}else{echo '';}?>>27日</option>
                                                            <option value="28" <?php if($do['go_time']==28){echo "selected";}else{echo '';}?>>28日</option>
                                                            <option value="29" <?php if($do['go_time']==29){echo "selected";}else{echo '';}?>>29日</option>
                                                            <option value="30" <?php if($do['go_time']==30){echo "selected";}else{echo '';}?>>30日</option>
                                                        </select>
                                                    </div>
                <div class="clear"></div>
            </div> 
           
            <div class="AMu-form-list">

                <div class="AMu-form-list-title"><div>入住方式</div></div>
                <div class="AMu-form-list-cont">
                    <select name="room_type"   class="AMu-select" style="background:url(../style/select_icon.png) no-repeat right center;height:95%;width:80%;float:right;appearance:none;
  -moz-appearance:none;-webkit-appearance:none;border: solid 1px #fff;">
                                        <?php  if($do['room_type'] == '单标间'){ ?>

                                            <option value="单标间" selected>双标210元/人.天</option>
                                            <option value="双标间">双标/大床420元/间.天</option>
                                            <option value="套间" >行政大床600元/间.天</option>
                                        <?php   }else if($do['room_type'] == '双标间' ){ ?>

                                            <option value="单标间" >双标210元/人.天</option>
                                            <option value="双标间" selected="selected">双标/大床420元/间.天</option>
                                            <option value="套间" >行政大床600元/间.天</option>
                                          <?php }else {?>
                                            <option value="单标间" >双标210元/人.天</option>
                                            <option value="双标间" >双标/大床420元/间.天</option>
                                            <option value="套间" selected>行政大床600元/间.天</option>
                                      <?php } ?>
                    </select>

                                    </div>
                <div class="clear"></div>
            </div>
            <div class="AMu-sub-btn">
                            <input type="submit"  value="提交" id="Submit">
            </div>
        </form>

    </div>
    <div style="width:100%;height:30px;"></div>
<div style="height:30px;width:100%;background:#db3655;color:#fff;font-size:80%;line-height:30px;text-align:center;position:fixed;bottom:0px;">操作过程中如有疑问，请致电客服热线：400-825-8989</div></body>
</div>  
<!-- <form action="" method="get">
    <input type="text" name="usr_name"  required="required" placeholder="a"/>
    <input type="text" name="usr_name"  required="required" placeholder="b"/>
    <input type="submit" value="提交" />
</form> -->
</body>
</html>
<script src="../resource/js/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="../js/date/laydate.js"></script>
<script type="text/javascript">
$(function(){


// 验证必填项
$('.input').data({'s':0});

// 验证姓名

$('#name').blur(function(){
    val=this.value;
    var title=$("#name").val();
    var defaultValue="此项为必填项";
    if(title.length!=0){
        if(title!=defaultValue){
            $('#name').data({'s':1});
            }
        else{
            $('#name').data({'s':0});
        }
    }
});
//手机验证
$('#phone').blur(function(){
    var value=$("#phone").val();
        reg=/^1[3|4|5|8][0-9]\d{8}$/;   
            if(!reg.test(value)){   
                 $("#phone").css({'color':'#DB3656'});
                    $('#phone').data({'s':0});
            }else{
                $("#phone").css({'color':'#333'});
                $('#phone').data({'s':1});
            }
})
// 页面跳转
    $("#Submit").click(function(){
            $('.input').blur();
            tot=0;
            $('.input').each(function(){
                tot+=$(this).data('s');
            });
            if(tot==2){
                return true;
            }else{
                return false;
            }
           return false;
    })
})
</script>



<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="../resource/js/bootstrap.min.js"></script>